/**
 * Created with IntelliJ IDEA.
 * User: 卞京帅{bjslogin@gmail.com}
 * Date: 12-11-14
 * Time: 下午11:19
 * To change this template use File | Settings | File Templates.
 */
Ext.define('Airways.view.system.FrameTopView' ,{
    extend:'Ext.panel.Panel',
    alias:'widget.frameTopView',
    split:true,
    collapsible:true,
    title:'上海新急便国际货物运输代理有限公司',
    height:100,
    contentEl:'topDiv',
    initComponent: function() {
//        this.html = "<div id = \"topDiv\">\n" +
//            "    <table width=\"100%\" border=\"0\" height=\"50\" cellpadding=\"0\" cellspacing=\"0\" >\n" +
//            "        <tr>\n" +
//            "            <td class=\"td_norepeat\" bgcolor=\"#023D79\" align=\"right\" >\n" +
//            "                <font color='white' size=\"2\" face=\"微软雅黑\">欢迎您：</font>\n" +
//            "            </td>\n" +
//            "        </tr>\n" +
//            "    </table>\n" +
//            "</div>";
        this.bbar = this.buildBbar();
        this.callParent(arguments);
    },
    buildBbar:function(){
        return [{
            xtype:'button',
            text:'绿',
            action:'green'
        },{
            xtype:'button',
            text:'深',
            action:'access'
        },{
            xtype:'button',
            action:'gray',
            text:'灰'
        },'->',{
            xtype:'button',
            iconCls:'password',
            action:'password',
            text:'更改密码'
        },{
            xtype:'button',
            iconCls:'logout',
            action:'logout',
            text:'退出系统'
        }]
    }
});
